<tagLib name="html" />
<include file="Public:header" />
<load href ="__PUBLIC__/Js/common.js" />
<load href ="__PUBLIC__/Js/jquery-1.4.4.min.js" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/editor/kindeditor.js"></script>
<script type="text/javascript">
    KE.show({
        id : 'traffic_1'
   });
   KE.show({
        id : 'community_1'
   });
   KE.show({
        id : 'around_1' //TEXTAREA输入框的ID
   });
   function addRowplus(tablename){
				var tablename = tablename;
				var trstr = jQuery("#"+tablename).find("tr").eq(0).html();
				var pattern = /value=[a-zA-Z0-9_]*/ig;
				trstr = trstr.replace(pattern,'');
				trstr = "<tr>"+trstr+"</tr>";
				jQuery('#'+tablename).append(trstr);
			}
    function removerow(obj){
		var objnum = jQuery(obj).parent().parent().parent().children().size();
		if(objnum>1)
		{
                    jQuery(obj).parent().parent().remove();
		}
   }
</script>
<div id="main" class="main" >
<div class="content">
<div class="title">修改广告 [ <a href="__URL__">返回列表</a> ]</div>
<form method='post' id="form1" action="__URL__/update/" enctype="multipart/form-data">
<table cellpadding=3 cellspacing=3>
<tr>
	<td class="tRight" >标题：</td>
	<td class="tLeft" >
            <input type="text" class="medium bLeftRequire"  check='Require' warning="名不能为空" id="name" name="name" value="{$vo.name}">
        </td>
</tr>
<tr>
	<td class="tRight" >链接地址：</td>
	<td class="tLeft" >
            http://<input type="text" name='url' class="large" value="{$vo.url}">
        </td>
</tr>
<tr>
	<td class="tRight" >排序：</td>
	<td class="tLeft" >
            <input type="text" name='sort' value="{$vo.sort}">
        </td>
</tr>

<tr>
	<td class="tRight" >图片：</td>
	<td class="tLeft" bgcolor="whiteSmoke">
          <table><tr><td><input type="file" class="large bLeft" name="logo">(必须上传)</td></tr>
                    <tr height="240" width="120"><td> <notempty name="logo_photo"><img src="{$logo_photo}" alt="logo图片" height="60%" width="60%" /></notempty></td></tr>
                </table>
                建议宽度为950px,高度为300px
        </td>
</tr>

<tr>
	<td></td>
	<td class="center">
		<input type="hidden" name="update_time" value="{:time()}">
	<input type="hidden" name="id" value="{$vo.id}" >
	<input type="submit" value="保 存" class="small submit">
	<input type="reset" class="reset imgButton" onclick="javascript:history.back()" value="返回" >
	</td>
</tr>
</table>
</form>
</div>
</div>
